import request from '@/utils/request'

export function machineList(data) {
  return request({
    url: '/machine',
    method: 'get',
    params: data
  })
}
export function createMachine(data) {
  return request({
    url: '/machine',
    method: 'post',
    data
  })
}

export function updataMachine(data) {
  return request({
    url: '/machine',
    method: 'put',
    data
  })
}
export function deleteMachine(id) {
  return request({
    url: '/machine/' + id,
    method: 'delete'
  })
}
export function detailMachine(id) {
  return request({
    url: '/machine/' + id,
    method: 'get'
  })
}
export function getMachineType(data) {
  return request({
    url: '/machine/getMachineType',
    method: 'get',
    data
  })
}
